<?php
$error  = getFlashMsg();
?>
<h1>会员中心</h1>
<p class="breadcrumb"><a href="/">首页</a> &gt; <a href="/user">会员中心</a></p>
<form id="frmlogin" name="frmlogin" method="post" action="<?php echo url_for('user/login')?>">
    <?php if($error):?>
    <div class="errorbox"><?php echo $error;?></div>
    <br>
    <?php endif;?>
    <table cellspacing="0" cellpadding="0" border="0" align="center" class="frame" style="margin: 0 auto;">
        <tbody><tr>
                <td><table cellspacing="0" cellpadding="10" border="0" align="center">
                        <tbody><tr>
                                <td width="150" align="right" class="fieldarea">电子邮件地址:</td>
                                <td><input type="text" value="" size="40" name="username"></td>
                            </tr>
                            <tr>
                                <td width="150" align="right" class="fieldarea">密码:</td>
                                <td><input type="password" value="" size="40" name="password"></td>
                            </tr>

                            <tr>
                                <td width="150" align="right" class="fieldarea">&nbsp;</td>
                                <td><input type="submit" value="登入"></td>
                            </tr>
                        </tbody></table></td>
            </tr>
        </tbody></table><br>
</form>
<script type="text/javascript">
    document.frmlogin.username.focus();
</script>